package com.jrh.domain.entity;

/**
 * 图片广告
 * 
 * @author yout 2012-8-2 下午10:46:45
 */
public class ImgAd {

    public static final String AD_TYPE_BRAND   = "brand";
    public static final String AD_TYPE_PRODUCT = "product";

    private Long               refId;
    private String             refType;
    private String             imgPath;
    private String             adUrl;
    private Long               id;
    private String             minImgPath;

    /**
     * @param refId
     * @param refType
     */
    public ImgAd(Long refId, String refType){
        super();
        this.refId = refId;
        this.refType = refType;
    }

    /**
     * @param imgPath
     * @param adUrl
     */
    public ImgAd(String imgPath, String adUrl){
        this.imgPath = imgPath;
        this.adUrl = adUrl;
    }

    /**
     * @param refId
     * @param refType
     * @param imgPath
     * @param adUrl
     */
    public ImgAd(Long refId, String refType, String imgPath, String adUrl){
        this.refId = refId;
        this.refType = refType;
        this.imgPath = imgPath;
        this.adUrl = adUrl;
    }

    public ImgAd(){
    }

    public String getRefType() {
        return refType;
    }

    public void setRefType(String refType) {
        this.refType = refType;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getAdUrl() {
        return adUrl;
    }

    public void setAdUrl(String adUrl) {
        this.adUrl = adUrl;
    }

    public Long getRefId() {
        return refId;
    }

    public void setRefId(Long refId) {
        this.refId = refId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMinImgPath() {
        return minImgPath;
    }

    public void setMinImgPath(String minImgPath) {
        this.minImgPath = minImgPath;
    }

    @Override
    public String toString() {
        return "ImgAd [refId=" + refId + ", refType=" + refType + ", imgPath=" + imgPath + ", adUrl=" + adUrl + ", id="
               + id + "]";
    }

}
